/**
 * 主要解决 element-ui 组件报错的问题，报错内容如下：
 *
 *  Popper: Detected CSS transitions on at least one of the following CSS properties: "transform", "top", "right", "bottom", "left".
 *
 *  Disable the "computeStyles" modifier's `adaptive` option to allow for smooth transitions, or remove these properties from the CSS transition declaration on the popper element if only transitioning opacity or background-color for example.
 *
 *  We recommend using the popper element as a wrapper around an inner element that can have any CSS property transitioned for animations.
 */
export const usePopperOptions = function () {
    return {
        modifiers: [
            {
                name: 'computeStyles',
                options: {
                    // gpuAcceleration: false, // 禁用 GPU 加速
                    adaptive: false // 禁用边界检测
                },
            },
        ],
    }
}
